package com.jrx.anytxn.reporting.service;

import com.jrx.anytxn.common.exception.TxnBizException;
import com.jrx.anytxn.customer.entity.CmCustomerSecondLevel;
import com.jrx.anytxn.reporting.bean.CustomerDataBean;
import com.jrx.anytxn.reporting.dto.MrCustomerInfoRes;

import java.util.List;


/**
 * @author ：lihm
 * @date ：2019/11/26 16:43
 */
public interface ICustomerDataDealService {

    /**
     *组装客户信息
     */
    CustomerDataBean assemCustomerData(CmCustomerSecondLevel cmCustomerSecondLevel) throws TxnBizException;

    /**
     * 保存客户信息
     */
    void saveCustomerDate(CustomerDataBean customerDataBean);

    /**
     * 根据租户id和其余值查询 监管报送的客户信息
     * @param customerId 客户id
     * @param mobile 手机号
     * @param idNumber 证件号
     * @param tenantId 租户id
     * @return 监管报送的客户信息表集合
     */
    List<MrCustomerInfoRes> getMrCustomersByCusIdOrMobileOrIdNumber(String customerId,String mobile,String idNumber,String tenantId );

    /**
     * 根据租户id和客户id和渠道查询客户信息
     * @param customerId 客户id
     * @param channel 渠道
     * @param tenantId 租户id
     * @return 监管报送的客户信息表集合
     */
    MrCustomerInfoRes getMrCustomersByTenantIdAndChannelAndcustomerId(String tenantId,String channel,String customerId );
}
